from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns = [
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/', views.SmsCodeView.as_view()),
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
    url(r'mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
    url(r"^users/$",views.UserView.as_view()),
    url(r'^authorizations/$', obtain_jwt_token),
    url(r'^user/$',views.PersonalCenter.as_view()),
    url(r'^myquestion/$',views.MyQuestion.as_view()),
    url(r'^myanwser/$',views.MyAnwser.as_view()),
    url(r'^myfocusquestion/$',views.MyFocusQuestion.as_view()),
    url(r'^myfocustag/$',views.MyFocusTag.as_view()),
    url(r'^browse_histories/$',views.UserBrowsingHistoryView.as_view()),
    url(r'^city/$',views.SetCity.as_view()),
    url(r'^school/$',views.SetCity.as_view()),
    url(r'^company/$',views.SetCity.as_view()),
    url(r'^persurl/$',views.SetCity.as_view()),
    url(r'^persintro/$',views.SetCity.as_view()),
    url(r'^personalcount/$',views.PersonalCount.as_view()),
    url(r'^nickname/$',views.SetCity.as_view()),
    url(r'^email/$',views.PersonalCountChange.as_view()),
    url(r'^password/$',views.PersonalCountChange.as_view()),
    url(r'^monbile/$',views.PersonalCountChange.as_view()),
]